package com.manage.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;


@Accessors(chain = true)
@Data
@TableName("t_indicator_system")
public class IndicatorSystemEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(description = "指标体系ID")
    private Long id;

    @Schema(description = "创建人用户ID,不传")
    private Long userId;

    @Schema(description = "负责人ID")
    private Long leaderId;

    @Schema(description = "上级指标ID(0表示顶级)")
    private Long parentId = 0L;

    @Schema(description = "层级(默认为1级)")
    private Integer level = 1;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "内容描述")
    private String description;

    @Schema(description = "适用学年")
    private String academicYear;

    @Schema(description = "开始时间(yyyy-MM-dd HH:mm:ss)")
    private String startTime;

    @Schema(description = "结束时间(yyyy-MM-dd HH:mm:ss)")
    private String endTime;

    @Schema(description = "是否为核心指标(0:否,1:是)")
    private Integer isCore = 0;

    @Schema(description = "状态(0:未开始,1:进行中,2:已完成,3:逾期未完成)")
    private Integer status = 0;

    @Schema(description = "创建时间(yyyy-MM-dd HH:mm:ss)")
    private String createTime;

    @Schema(description = "更新时间(yyyy-MM-dd HH:mm:ss)")
    private String updateTime;

    @TableLogic
    @Schema(description = "是否删除(0:否,1:是)")
    private Integer isDeleted = 0;

}